package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.Category;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * packageName com.sky.mapper
 *
 * @author fenglai
 * @version JDK 11
 * @interfaceName CategoryMapper
 * @date 2023/12/10
 * @description TODO
 */
@Mapper
public interface CategoryMapper {
    List<Category> getCategory(Category build);

    @AutoFill(OperationType.INSERT)
    void addCategory(Category category);

    @AutoFill(OperationType.UPDATE)
    void updateCategory(Category category);

    void deleteCategory(Long id);
}

